<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="apple-themes-web-app-capable" content="yes">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>手机微信版一元夺宝商城网</title>

    <link rel="stylesheet" href="css/main.css" type="text/css" media="all">
</head>

<body>

<!-- 页面加载 开始-->
<div id="preloader" >
    <div id="status">
        <p class="center-text"><span>拼命加载中···</span></p>
    </div>
</div>
<!--页面加载 结束 -->
<header id="header" >
    <div style="background:#D91D37;color: #FFFFFF);">一元夺宝</div>
    <div class="header_con" style="overflow:hidden;">
        <a href="javascript:history.go(-1);"><span></span></a>
        <?php if(session("login_name")){  ?>
        				<a href="my_sz_zh">{{session("login_name")}}</a>
        <?php }else{?>
        				<div style="margin-top: 20px;"><a href="denglu">登录</a></div>
        <?php }?>
    </div>
</header>
<div id="content_div" class="">
    <!--首页轮播-->
    <div class="top_pic">
        <div class="carousel-image" id="scroll_img">
            <div>
                <a href="#"><img src="images/h01.jpg" /></a>
                <a href="#"><img src="images/h02.jpg" /></a>
            </div>
            <span class="carousel-num">
			            </span>
        </div>
    </div>
    <!--首页轮播结束-->
    <div class="home_mian">
        <ul class="clearfixd">
            <li><a href="qbsp"><i class="home_ti01"></i><p>全部商品</p></a></li>
            <li><a href="zxkj"><i class="home_ti02"></i><p>最新开奖</p></a></li>
            <li><a href="cjwt"><i class="home_ti03"></i><p>常见问题</p></a></li>
            <li><a href="dbjl"><i class="home_ti04"></i><p>夺宝记录</p></a></li>
        </ul>
    </div>
    <div class="home_mian_down"> <em></em> <p>恭喜<span>134****2168</span>获得100元话费充值卡 全网通用</p> <i></i></div>
<x></x>
    <div class="home_cp_tit">
        <a class="change_c"><span>人气推荐</span></a><a><span >最新商品</span></a><a><span >即将开奖</span></a></h2>
    </div>

    <div class="home_all_box">



        <div class="home_cp_box clearfixd">
            @foreach($goods as $goodsa)
                <ul>
                    <a href="xq{{$goodsa->id}}"><li><img src="{{$goodsa->img}}" /></li></a>
                    <dl>
                        <dt>{{$goodsa->name}}</dt>

                        <dd><span><em style="width:{{$goodsa->progress}}%;"></em></span>
                            <a href="xq{{$goodsa->id}}">立即夺宝</a>
                            <p>开奖进度 <em>{{$goodsa->progress}}%</em></p>
                        </dd>
                    </dl>
                </ul>
            @endforeach

        </div>

        <div class="home_cp_bot"><img src="images/bot_01.png" />正在加载...</div>

    </div>




    <div class="home_all_box"  style="display:none;">
    <div  class="home_cp_box clearfixd">
        @foreach($users as $user)
            <ul>
                <a href="xq{{$user->id}}"><li><img src="{{$user->img}}" /></li></a>
                <dl>
                    <dt>{{$user->name}}</dt>
                    <dd><span><em style="width:{{$user->progress}}%;"></em></span>
                        <a href="xq{{$user->id}}">立即夺宝</a>
                        <p>开奖进度 <em>{{$user->progress}}%</em></p>
                    </dd>
                </dl>
            </ul>
        @endforeach

    </div>

    <div class="home_cp_bot"><img src="images/bot_01.png" />正在加载...</div>
    </div>




    <div class="home_all_box">

        <div class="home_cp_box clearfixd">
            @foreach($row as $rows)
                <ul>
                    <a href="xq{{$rows->id}}"><li><img src="{{$rows->img}}" /></li></a>
                    <dl>
                        <dt>{{$rows->name}}</dt>
                        <dd><span><em style="width:{{$rows->progress}}%;"></em></span>>
                            <a href="xq{{$rows->id}}">立即夺宝</a>
                            <p>开奖进度 <em>{{$rows->progress}}%</em></p>
                        </dd>
                    </dl>
                </ul>
            @endforeach

        </div>

        <div class="home_cp_bot"><img src="images/bot_01.png" />正在加载...</div>

    </div>

<!--底部-->
<!--底部结束-->

<script type="text/javascript" src="js/zepto.js"></script>
<script type="text/javascript" src="js/carousel-image.js"></script>
<script>
    $('.carousel-image').CarouselImage({
        num: $('.carousel-image .carousel-num'),
        repeat: true
    });
</script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
</body>

</html>

<script>
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    $('#zxsp').click(function () {
         var a = 1;
        $.ajax({
            url:"ajax_z",
            data:a,
            success:function (data) {
                 alert(data);
              }

      })
    })

</script>
